package cn.bgs.wjx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TopUp对象", description="")
public class TopUpVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "充值记录表自增id")
    private Integer topUpId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "充值单号")
    private String prepaidNumber;

    @ApiModelProperty(value = "缴费类型id")
    private Integer paymentTypeId;

    @ApiModelProperty(value = "充值时间")
    private LocalDateTime topUpTime;

    @ApiModelProperty(value = "缴费金额")
    private Double paymentAmount;

    @ApiModelProperty(value = "状态（未缴费、已缴费、缴费失败）")
    private Integer state;

    @ApiModelProperty(value = "微信支付")
    private String methodOfPayment;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "MM-dd HH:mm", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    private String type;
}
